<!DOCTYPE html>
<html>
<head>
    <#include "../common.ftl">
</head>
<body class="childrenBody">
<form class="layui-form layuimini-form" style="width:90%;">
    <input name="id" type="hidden" value="${(todo.id)!}"/>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label required">标题</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input todoName"
                   lay-verify="required" name="title" id="title"  value="${(todo.title)!}" placeholder="请输入标题">
        </div>
    </div>

    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label required">内容</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input todoName"
                   lay-verify="required" name="content" id="content" value="${(todo.content)!}" placeholder="请输入待办事项">
        </div>
    </div>

    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label required">日期范围</label>
        <div class="layui-inline" id="date">
            <div class="layui-input-inline">
                <input type="text" autocomplete="off"
                       id="beginTime" name="beginTime"
                       class="layui-input" placeholder="开始日期"
                       value="${(todo.beginTime)!}">
            </div>
            <div class="layui-form-mid">-</div>
            <div class="layui-input-inline">
                <input type="text" autocomplete="off"
                       id="endTime" name="endTime"
                       class="layui-input" placeholder="归档日期"
                       value="${(todo.endTime)!}">
            </div>
        </div>
    </div>

    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label required">时间限制</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input todoName"
                   name="limitTime" id="limitTime" value="${(todo.limitTime)!}" placeholder="请输入时间限制(天)">
        </div>
    </div>

    <br/>
    <div class="layui-form-item layui-row layui-col-xs12">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-lg" lay-submit=""
                    lay-filter="addOrUpdateTodo">确认
            </button>
            <a class="layui-btn layui-btn-lg layui-btn-normal"  id="closeDlg" href="javascript:void(0)">取消</a>
        </div>
    </div>
</form>
<script type="text/javascript" src="${ctx.contextPath}/public/js/todo/add.update.js"></script>
</body>
</html>